package com.common.retrofit.entity.bean;

import java.util.List;

/**
 * Created by Administrator on 2017/11/7.
 */

public class SortBean {

    /**
     * total : [{"id":3,"name":"青菜","selected":1},{"id":15,"name":"子分类1-3","selected":0},{"id":14,"name":"子分类1-2","selected":0},{"id":13,"name":"子分类1-1","selected":0},{"id":11,"name":"厨房用品","selected":0},{"id":10,"name":"床上用品","selected":0},{"id":8,"name":"洗漱用品","selected":0},{"id":6,"name":"新鲜水果","selected":0},{"id":5,"name":"干果","selected":0},{"id":19,"name":"子分类2-3","selected":0}]
     * category : [{"id":1,"name":"蔬菜","child":[{"id":3,"name":"青菜"},{"id":4,"name":"咸菜"}]},{"id":12,"name":"分类2","child":[{"id":17,"name":"子分类2-1"},{"id":18,"name":"子分类2-1"},{"id":19,"name":"子分类2-3"}]},{"id":9,"name":"分类1","child":[{"id":13,"name":"子分类1-1"},{"id":14,"name":"子分类1-2"},{"id":15,"name":"子分类1-3"},{"id":16,"name":"子分类1-4"}]},{"id":7,"name":"日用品","child":[{"id":11,"name":"厨房用品"},{"id":10,"name":"床上用品"},{"id":8,"name":"洗漱用品"}]},{"id":2,"name":"水果","child":[{"id":6,"name":"新鲜水果"},{"id":5,"name":"干果"}]}]
     * goods : {"list":[{"id":2,"name":"生菜","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/23231.jpg","s_name":"3斤/袋","s_prince":"￥25","is_num":1,"specifications":[{"id":1,"name":"3斤/袋","prince":25,"num":100,"is_num":1}]}],"total":1,"remainder":0,"page":1}
     */

    public GoodsBean goods;
    public List<TotalBean> total;
    public List<CategoryBean> category;

    public static class GoodsBean {
        /**
         * list : [{"id":2,"name":"生菜","img":"http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/23231.jpg","s_name":"3斤/袋","s_prince":"￥25","is_num":1,"specifications":[{"id":1,"name":"3斤/袋","prince":25,"num":100,"is_num":1}]}]
         * total : 1
         * remainder : 0
         * page : 1
         */

        public int total;
        public int remainder;
        public int page;
        public List<ListBean> list;

        public static class ListBean {
            /**
             * id : 2
             * name : 生菜
             * img : http://chujiale.oss-cn-beijing.aliyuncs.com/Admin/Picture/2017-10-26/23231.jpg
             * s_name : 3斤/袋
             * s_prince : ￥25
             * is_num : 1
             * specifications : [{"id":1,"name":"3斤/袋","prince":25,"num":100,"is_num":1}]
             */

            public int id;
            public String name;
            public String img;
            public String s_name;
            public String s_prince;
            public int is_num;
            public List<SpecificationsBean> specifications;

            public static class SpecificationsBean {
                /**
                 * id : 1
                 * name : 3斤/袋
                 * prince : 25
                 * num : 100
                 * is_num : 1
                 */

                public int id;
                public String name;
                public double prince;
                public int num;
                public int is_num;
            }
        }
    }

    public static class TotalBean {
        /**
         * id : 3
         * name : 青菜
         * selected : 1
         */

        public int id;
        public String name;
        public int selected;
    }

    public static class CategoryBean {
        /**
         * id : 1
         * name : 蔬菜
         * child : [{"id":3,"name":"青菜"},{"id":4,"name":"咸菜"}]
         */

        public int id;
        public String name;
        public List<ChildBean> child;

        public static class ChildBean {
            /**
             * id : 3
             * name : 青菜
             */

            public int id;
            public String name;
        }
    }
}
